public class Node {

	private Node left;
	private Node right;

	private Integer value;

	public Node() {

		left = null;
		right = null;
		value = null;

	}

	public Node(Integer _v) {
		left = null;
		right = null;
		value = _v ;
	}

	public Node(Node _l, Node _r, Integer _v) {
		left = _l;
		right = _r;
		value = _v ;
	}

	public Node getLeft() {
		return left;
	}

	public Node getRight() {
		return right;
	}

	public Integer getValue() {
		return value;
	}

	public void setLeft(Node left) {
		this.left = left;
	}

	public void setRight(Node right) {
		this.right = right;
	}

	public void setValue(Integer value) {
		this.value = value ;
	}

}
